package com.tencent.bk.sdk.iam.dto;

import com.tencent.bk.sdk.iam.dto.callback.response.BaseInfoDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=true)
public class PathInfoDTO extends BaseInfoDTO {
    private String type;
    private PathInfoDTO child;

    public String toString() {
        StringBuilder sb = new StringBuilder("/");
        sb.append(this.type).append(',').append(this.getId());
        return this.child == null ? sb.append("/").toString() : sb.append(this.child.toString()).toString();
    }
}
